package edu.gatech.cs2340.teamrocket.view;

import java.awt.CardLayout;

import javax.swing.*;

/**
 * This is the main game frame using the card layout to manage all the panels
 * 
 * @author Wai Chip Ngai
 */
@SuppressWarnings("serial")
public class GameFrame extends JFrame {

	public static final String INTRO_GUI_JPANEL = "introgui";
	public static final String SHOP_GUI_JPANEL = "shopgui";
	public static final String MAIN_MENU_JPANEL = "mainmenu";
	public static final String MAIN_GAME_JAPNEL = "maingamepanel";


	private CardLayout cl;

	public GameFrame(){
		//setBounds(0, 0, 1920, 1080);
		setTitle("Victory Trail");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		cl = new CardLayout();
		setLayout(cl);

		setVisible(true);
	}

	public void showPanel(String name){
		cl.show(this.getContentPane(), name);
	}
}
